﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="DepartList.aspx.cs" 
Inherits="Ankin.EHBH.Web.Modules.SystemManage.DepartList" Title="医用耗材管理系统" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphcenter" runat="server">
<script language="javascript" type="text/javascript">
// <!CDATA[


// ]]>
</script>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td class="right-color">系统设置---科室列表</td>
        <td align="right">
      <!--  <input type="button" value="添加科室" id="ButtonSearch" onserverclick="btnAdd_Click" class="longbutton" />-->
        <asp:Button ID="btnAdd" runat="server" OnClick="btnAdd_Click" Text="添加科室" CssClass="longbutton" Width="90" Height="25" style="cursor:pointer;" /></td>
      </tr>
</table>

    <table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin-top:14px;">
  <tr>
    <td class="bor bor-bg">科室列表：</td>
  </tr>
  <tr>
  <td class="bor">
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="t1">
  <tr>
    <td align="right">
        科室名称：</td>
    <td><asp:TextBox ID="txtName_Id" runat="server"  Width="150" MaxLength="20"></asp:TextBox>
       </td>
    <td align="right">
        简称/别名：</td>
    <td >
        <asp:TextBox ID="txtAlias_Id" runat="server" Width="150" MaxLength="20"></asp:TextBox></td>
    <td align="right">
        科室代码：</td>
    <td>
        <asp:TextBox ID="txtCode_Id" runat="server" Width="150" MaxLength="8"></asp:TextBox></td>
  </tr>
  <tr>
  <td align="right">
        临床属性：</td>
    <td>
        <asp:DropDownList ID="ddlClinical" runat="server" Width="155">
        </asp:DropDownList>
       </td>
    <td align="right">
        门诊/住院：</td>
    <td >
        <asp:DropDownList ID="ddlInternal" runat="server" Width="155">
        </asp:DropDownList>
        </td>
    <td align="right">
        内/外科：</td>
        <td>
            <asp:DropDownList ID="ddlOutp_Or_Inp" runat="server" Width="155">
            </asp:DropDownList>
        </td>
  </tr>
  <tr><td align="right"  colspan="6">
  <asp:Button ID="btnSelect" runat="server" OnClick="btnSelect_Click" Text="查询 "  CssClass="button" Width="57" Height="25" style="cursor:pointer;"  />
  </td></tr>
</table>  
  </td>
  </tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin-top:14px;">
  <tr>
    <td class="bor bor-bg">
    科室信息列表
    </td>
  </tr>
  <tr>
    <td class="bor" style="padding:13px;">
        <asp:GridView ID="grdDeptList" runat="server" AutoGenerateColumns="False" CellPadding="4"  ForeColor="Black" AllowPaging="True" OnPageIndexChanging="grdDeptList_PageIndexChanging" OnRowDeleting="grdDeptList_RowDeleting" DataKeyNames="DEPT_CODE"  Width="104%" PageSize="20"  >
                  <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
      <RowStyle CssClass="gv-first-line"/>
       <EmptyDataTemplate>
            <table width="100%" height="100">
                
                <tr>
                    <td align="center" class="jg">
                        对不起，没有找到任何相关记录
                    </td>
                </tr>
            </table>
        </EmptyDataTemplate>
                  <Columns>
                      <asp:BoundField DataField="SERIAL_NO" HeaderText="序号" />
                      <asp:BoundField DataField="DEPT_NAME" HeaderText="科室名称" />
                      <asp:BoundField DataField="DEPT_CODE" HeaderText="科室代码" />
                       <asp:BoundField DataField="DEPT_ALIAS" HeaderText="简称/别名" />
                      <asp:BoundField DataField="CLINIC_ATTR_NAME" HeaderText="临床属性" />
                      <asp:BoundField DataField="OI_ATTR_NAME" HeaderText="门诊住院属性" />
                      <asp:BoundField DataField="IS_ATTR_NAME" HeaderText="内外科属性" />
                      <asp:TemplateField HeaderText="修改">
                      
                      <ItemTemplate>
             <table width="57" border="0" cellspacing="0" cellpadding="0" align="center">
              <tr>
                <td height="25" align="center" class="button" style="padding-top:2px;"> 
                        <a href='<%#"DepartAdd.aspx?DEPT_CODE="+Eval( "DEPT_CODE")%>'>修改</a>
                 </td>
               </tr>
            </table>     
                        </ItemTemplate>
                      </asp:TemplateField>
                        <asp:TemplateField HeaderText="删除">
                                         <ItemTemplate>
                                          <table border="0" cellspacing="0" cellpadding="0" align="center">
                                              <tr>
                                                <td height="25" align="center" class="button" style="padding-top:2px;"> 
                                                  <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete" OnClientClick="return confirm('确认要删除吗？');" 
                                                      Text="删除" CssClass="button1">
                                                  </asp:LinkButton>
                                                  </td>
                                              </tr>
                                          </table>
                                              </ItemTemplate>
                                      </asp:TemplateField>
                  </Columns>
           <PagerStyle CssClass="fy" />
           <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="Black" />
           <HeaderStyle  CssClass="gv-head" />
           <EditRowStyle BackColor="Black" />
           <AlternatingRowStyle BackColor="White" />
           <PagerSettings Mode="NumericFirstLast" FirstPageText="首页" LastPageText="末页"/>
              </asp:GridView>  
    </td>
  </tr>
</table>


</asp:Content>
